<script>
  var arr = [1, 2, 3];
  for (var value of arr) {
    console.log(value);
  }
</script>